package com.cmrx.model.dao;

import com.cmrx.model.entity.CommonAttachment;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

/**
 * Created by angle on 2019/2/16.
 */
@Mapper
@Repository
public interface CommonAttachmentDao {
    /**
     * 根据id查找附件文件信息
     * @param id
     * @return
     */
    CommonAttachment queryById(String id);

    /**
     * 根据id删除附件文件信息
     * @param id
     * @return
     */
    int deleteById(String id);

    /**
     * 添加附件文件信息
     * @param attachment
     * @return
     */
    int addAttachment(CommonAttachment attachment);

    /**
     * 修改附件文件信息
     * @param attachment
     * @return
     */
    int updateById(CommonAttachment attachment);
}
